package com.logger.persistance.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "log_user")
public class LogUser extends BaseObject {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "user_login")
    private String  user_login;
    @OneToMany (mappedBy ="logUser" , cascade = CascadeType.REMOVE)
    private List<LogFile> logFile;
    
    public LogUser() {
        super();
    }

    public String getUser_login() {
        return user_login;
    }

    public void setUser_login(String user_login) {
        this.user_login = user_login;
    }

    @Override
    public String toString() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public boolean equals(Object o) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public int hashCode() {
        // TODO Auto-generated method stub
        return 0;
    }

    public List<LogFile> getLogFile() {
        return logFile;
    }

    public void setLogFile(List<LogFile> logFile) {
        this.logFile = logFile;
    }

   
}
